import request from './request';

// 获取端口转发列表
export function getSshTunnelList() {
    return request({
        url: '/ssh-tunnel',
        method: 'get',
    });
}
// 新增端口转发
export function addSshTunnel(data) {
    return request({
        url: '/ssh-tunnel',
        method: 'post',
        data,
    });
}
// 编辑端口转发
export function editSshTunnel(data) {
    return request({
        url: `/ssh-tunnel/${data.id}`,
        method: 'put',
        data,
    });
}
// 删除端口转发
export function deleteSshTunnel(id) {
    return request({
        url: `/ssh-tunnel/${id}`,
        method: 'delete',
    });
}